package com.wyg.ep_timer.feign;

import com.wyg.epcommonbase.mail.MailReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: WangYongGan
 * @Date: 2022/5/14 20:50
 * @Description:
 */
@Component
@FeignClient(name = "ep-mail", fallback = MailFeignBack.class)
public interface MailFeign {

    @RequestMapping(value = "test")
    public String test();

    @RequestMapping(value = "test2")
    public String test2();

    @PostMapping("send")
    public boolean send(@RequestBody MailReq req);
}
